<!DOCTYPE html>
<html>
<head>
    <title>收款单</title>
    <meta charset="utf-8">
    <!-- 指定以IE8的方式来渲染 -->
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
    <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" type="text/css" href="/js/easyui-1.3.5/themes/default/easyui.css"/>
    <link rel="stylesheet" type="text/css" href="/js/easyui-1.3.5/themes/icon.css"/>
    <link type="text/css" rel="stylesheet" href="/css/common.css"/>
    <script src="/js/jquery-1.8.0.min.js"></script>
    <script src="/js/easyui-1.3.5/jquery.easyui.min.js"></script>
    <script src="/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script>
    <script src="/js/My97DatePicker/WdatePicker.js"></script>
    <script src="/js/common/common.js"></script>
    <script src="/js/pages/financial/financial_base_readonly.js"></script>
</head>
<body>
<!-- 数据显示table -->
<div id="tablePanel" class="easyui-panel" data-options="fit:true" style="padding:1px;top:300px;" title="收款单列表" iconCls="icon-list">
    <table id="searchTable">
        <tr>
            <td>单据编号：</td>
            <td>
                <input type="text" name="searchBillNo" id="searchBillNo" style="width:100px;"/>
            </td>
            <td>单据日期：</td>
            <td>
                <input type="text" name="searchBeginTime" id="searchBeginTime"
                       onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:100px;"/>
            </td>
            <td>-
                <input type="text" name="searchEndTime" id="searchEndTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                       class="txt Wdate" style="width:100px;"/>
            </td>
        </tr>
        <tr>
            <td>是否到账：</td>
            <td>
                <select name="searchisaccount" id="searchisaccount" style="width:80px;">
                    <option value="">请选择</option>
                    <option value="未到账">未到账</option>
                    <option value="到账">到账</option>
                </select>
            </td>
            <td>财务经手人：</td>
            <td>
                <select name="searchHandsPersonId" id="searchHandsPersonId" style="width:100px;"></select>
            </td>
            <td>销售经手人：</td>
            <td>
                <input name="searchSalesman" id="searchSalesman" style="width:100px;">
            </td>

            <td>
                <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" id="searchBtn">查询</a>&nbsp;
                <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-redo" id="searchResetBtn">重置</a>
                <!--<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-redo" id="exprotBtn">导出</a>-->
            </td>
        </tr>
    </table>
    <table id="tableData" style="top:300px;border-bottom-color:#FFFFFF"></table>
</div>

<div id="accountHeadDlg" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px"
     closed="true" buttons="#dlg-buttons" modal="true" cache="false" collapsible="false" closable="true">
    <form id="accountHeadFM" method="post" novalidate>
        <table>
            <tr>
                <td style="width:70px;">付款单位：</td>
                <td style="padding:5px;width:170px;">
                    <select name="OrganId" id="OrganId" style="width:130px;"></select>
                </td>
                <td style="width:80px;">财务经手人：</td>
                <td style="padding:5px;width:170px;">
                    <select name="HandsPersonId" id="HandsPersonId" style="width:110px;"></select>
                </td>
                <td style="width:80px;">销售经手人：</td>
                <td style="padding:5px;width:170px;">
                    <input id="Salesman" name="Salesman" style="width:110px;"/>
                </td>
            </tr>
            <tr>
                <td style="width:70px;">单据日期：</td>
                <td style="padding:5px;width:170px;">
                    <input type="text" name="BillTime" id="BillTime"
                           onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="txt Wdate"
                           style="width:140px;" readonly/>
                </td>
                <td style="width:70px;">单据编号：</td>
                <td style="padding:5px;width:170px;">
                    <input name="BillNo" id="BillNo" class="easyui-validatebox"
                           data-options="required:true,validType:'length[2,30]'" style="width: 140px;" readonly/>
                </td>
                <td style="width:70px;">关联销售订单：</td>
                <td style="padding:5px;width:170px;">
                    <input name="Linkedorder" id="Linkedorder" class="easyui-validatebox"/>
                </td>
            </tr>
            <tr>
                <td colspan="9">
                    <!-- 单据列表table -->
                    <table id="accountData" style="top:100px;border-bottom-color:#FFFFFF"></table>
                </td>
            </tr>
            <tr>
                <td colspan="9">
                    <textarea name="Remark" id="Remark" rows="2" cols="2" placeholder="暂无备注信息"
                              style="width: 1130px; height:35px;"></textarea>
                </td>
            </tr>
            <tr>
                <td>优惠金额：</td>
                <td style="padding:5px">
                    <input type="text" name="ChangeAmount" id="ChangeAmount" class="easyui-numberbox"
                           data-options="min:0,precision:2" style="width: 110px;"/>
                </td>
            </tr>
            <tr>
                <td>是否到账：</td>
                <td style="padding:5px">
                    <select name="isaccount" id="isaccount" style="width:230px;">
                        <option value="">请选择</option>
                        <option value="未到账">未到账</option>
                        <option value="到账">到账</option>
                    </select>
                </td>
            </tr>
        </table>
        <input type="hidden" name="clientIp" id="clientIp" value="<%=clientIp %>"/>
    </form>
</div>
<div id="dlg-buttons">
    <a href="javascript:void(0)" id="saveAccountHead" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
    <a href="javascript:void(0)" id="cancelAccountHead" class="easyui-linkbutton" iconCls="icon-cancel"
       onclick="javascript:$('#accountHeadDlg').dialog('close')">取消</a>
</div>
<div id="accountHeadDlgShow" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px"
     closed="true" buttons="#dlg-buttons-show" modal="true" cache="false" collapsible="false" closable="true">
    <table style="width: 100%">
        <tr>
            <td style="width: 80px">付款单位：</td>
            <td> <span id="OrganIdShow"></span></td>
            <td style="width: 80px">单据编号：</td>
            <td> <span id="BillNoShow"></span></td>
        </tr>
        <tr>
            <td>是否到账：</td>
            <td>
                <span id="isaccountShow"></span>
            </td>
            <td>单据日期：</td>
            <td>
                <span id="BillTimeShow"></span>
            </td>
        </tr>

        <tr>
            <td colspan="4"><table id="accountDataShow" style="top:100px;border-bottom-color:#FFFFFF"></table></td>
        </tr>
        <tr style="margin-top: 10px;">
            <td>单据备注：</td>
            <td colspan="3">
                <span id="RemarkShow"></span>
            </td>
        </tr>
        <tr>
            <td>财务经手人：</td>
            <td> <span id="HandsPersonIdShow"></span></td>
            <td>销售经手人：</td>
            <td> <span id="salesmanShow"></span></td>
        </tr>
        <tr style="margin-top: 10px;">

            <td>优惠金额：</td>
            <td>
                <span id="ChangeAmountShow"></span>
            </td>
        </tr>
       <!-- <tr>
            <td style="width: 20%"></td>
            <td style="">

            </td>
            <td style="width: 20%">财务经手人：</td>
            <td style="">

            </td>
            <td style="width: 20%"></td>
            <td style="">

            </td>
            </tr>
        <tr>
            <td style="width: 20%">：</td>
            <td style="">
                <span id="BillTimeShow"></span>
            </td>
            <td style="width: 20%"></td>
            <td style="">

            </td>
        </tr>
        <tr>
            <td colspan="9" style="width: 1130px;">
                &lt;!&ndash; 单据列表table &ndash;&gt;

            </td>
        </tr>

       -->

    </table>
</div>
<div id="dlg-buttons-show">
    <a href="javascript:void(0)" id="printAccountHeadShow" class="easyui-linkbutton" iconCls="icon-ok">打印</a>
    <a href="javascript:void(0)" id="cancelAccountHeadShow" class="easyui-linkbutton" iconCls="icon-cancel"
       onclick="javascript:$('#accountHeadDlgShow').dialog('close')">取消</a>
</div>
</body>
</html>
